﻿using UnityEngine;
using System.Collections;

public class UserData
{
    public string username;
    public Color color;
    public Vector3 pos;
    public int hp;
    public int index;
    public bool isReady;
    public UserData()
    {

    }
        
    public UserData(string usernamse, Color color,int hp)
    {
        this.username = usernamse;
        this.color = color;
        this.hp = hp;
    }
    public UserData(string username, Vector3 pos)
    {
        this.username = username;
        this.pos = pos;
    }
    public UserData(string username, Color color,Vector3 pos)
    {
        this.username = username;
        this.pos = pos;
    }
}
public class MoveData
{ 
    public string username;
    public Vector2 direct;
    public Vector3 position;
    public Vector3 rotation;  
}
public class FireData
{
    public string username;//用户名  
    public float force;//力的大小
}
public class HitDat
{
    public string originUsername;
    public string targetUsername;
    public int hp;
}